package lesson6;

public class task4 {

		public static void main(String[] args) {
			
			String niz = "alolopopo";
			
			int[] counters = new int[26];//because latin letters are 26
			
			niz = niz.toLowerCase();
			
			for(int i = 0; i < niz.length(); i++)
			{
				counters[niz.charAt(i) - 'a' ]++;
			}
			
			for(int i = 0; i < counters.length; i++)
			{
				char letter = (char) (i + 'a');
				if(counters[i] != 0)
					System.out.println(letter + " : " + counters[i]);
			}
			
		}
}
